package cn.tedu.egmybatis2.mapper;

import cn.tedu.egmybatis2.product.Product;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
@Mapper
public interface ProductMapper {
    @Insert("INSERT INTO product (title,price,stock) " +
            "VALUES (#{title},#{price},#{stock})")
    void insert(Product product);
}
